<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-errorcode-edit" th:object="${errorcode}">
            <input id="apiErrorcodeId" name="apiErrorcodeId" th:field="*{apiErrorcodeId}"  type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">所属项目：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" id="treeName" readonly="true" th:value="${project.description}"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">错误组：</label>
                <div class="col-sm-8">
                    <input id="errorGroup" class="form-control" type="text" th:value="${errorGroup}" readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">错误代码编号：</label>
                <div class="col-sm-8">
                    <input id="errorcode" name="errorcode" th:field="*{errorcode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">前端提示：</label>
                <div class="col-sm-8">
                    <input id="description" name="description" th:field="*{description}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建者：</label>
                <div class="col-sm-8">
                    <input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text" readonly="true">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text" readonly="true">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">更新者：</label>
                <div class="col-sm-8">
                    <input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text" readonly="true">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">更新时间：</label>
                <div class="col-sm-8">
                    <input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text" readonly="true">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/errorcode"
		$("#form-errorcode-edit").validate({
			rules:{
				errorcode:{
                    required:true,
                    digits:true,
				},
                description:{
                    required:true,
                },
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-errorcode-edit').serialize());
			}
		});
	</script>
</body>
</html>
